package com.wzx.user.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wzx.user.common.BasePojo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author wzx
 * @version 1.0
 * @date 2023/3/1 - 22:49
 * @description 标题
 */
@Data
@TableName("t_notes")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "Wallet", description = "充值记录")
public class Notes extends BasePojo {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(notes = "主键id", required = true)
    private Integer id;

    @TableField("price")
    @ApiModelProperty(value = "充值金额")
    private Integer price;

    @TableField("type")
    @ApiModelProperty(value = "充值方式")
    private String type;

    @TableField("userId")
    @ApiModelProperty(value = "充值用户")
    private Integer userId;

    @TableField("state")
    @ApiModelProperty(value = "记录状态")
    private String state;

    @TableField("method")
    @ApiModelProperty(value = "1：充值；2：取出；3：购买商品；4：订单完成获得赏金；5：发送红包；6：抢红包，7：红包退款")
    private String method;

    @TableField("orderId")
    @ApiModelProperty(value = "订单id")
    private Integer orderId;

    @TableField("accountsObject")
    @ApiModelProperty(value = "转账对象id")
    private Integer accountsObject;

    @TableField("redPkgId")
    @ApiModelProperty(value = "红包ID")
    private Integer redPkgId;

    @TableField("redPkgType")
    @ApiModelProperty(value = "红包类型")
    private String redPkgType;

    @TableField("zfbTitle")
    @ApiModelProperty(value = "支付宝标题")
    private String zfbTitle;

    /**
     * 总收益
     *  exist = false：数据库中没有该字段
     */
    @TableField(exist = false)
    private Integer sumAll;

}
